const fs = require('fs');

// 调用rename方法
//实现重命名和移动
fs.rename('./fs-writeFile/文件写入/file4.txt', './fs-writeFile/文件重命名&移动/rename-file4.txt', err => {
    if (err) {
        console.log('操作失败！')
    }
    console.log('操作成功！');
});